package cn.wolfcode.util;

import lombok.Getter;

@Getter
public enum CustomerGroupTypeEnum {

    STATUS_COMMON("员工","e.name"),
    STATUS_NORMAL("年","DATE_FORMAT(c.input_time, '%Y')");

    private String name;
    private String value;

    CustomerGroupTypeEnum(String name, String value){
        this.name = name;
        this.value = value;
    }

    public static String getNameByValue(Integer value){
        CustomerGroupTypeEnum[] enums = values();
        for (CustomerGroupTypeEnum anEnum : enums) {
            if (anEnum.getValue().equals(value)) {
                return anEnum.getName();
            }
        }
        return null;
    }


/*    public static final int STATUS_COMMON = 0 ;//潜在客户
    public static final int STATUS_NORMAL = 1 ;//正式客户
    public static final int STATUS_FAIL = 2 ;//开发失败
    public static final int STATUS_LOST = 3 ;//流失客户
    public static final int STATUS_POOL = 4 ;//客户池*/

}
